import { http } from "@/utils/http";

export const useArtistAPI = () => {
  // 获取推荐歌手
  const getRecommendArtists = (): any => {
    return http.get("/user/singers/page?name=");
  };

  // 获取歌手详情
  const getArtistDetail = (uid: string): any => {
    return http.get(`/user/singers/queryByUid?uid=${uid}`);
  };

  // 获取歌手的歌曲
  const getSingerSongs = (singerName: string): any => {
    return http.get(`/music/queryBySinger?singerName=${singerName}`);
  };

  return {
    getRecommendArtists,
    getArtistDetail,
    getSingerSongs,
  };
};
